Quaqua 4.4.7 2008-07-16

ch.randelshofer.quaqua.subset
Class Quaqua14MenuLAF

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by ch.randelshofer.quaqua.LookAndFeelProxy
              extended by ch.randelshofer.quaqua.subset.Quaqua14MenuLAF
All Implemented Interfaces:
java.io.Serializable

public class Quaqua14MenuLAF
extends LookAndFeelProxy

The Quaqua14MenuLAF is an extension for Apple's Aqua Look and Feel for Java 1.4 on Mac OS X 10.3 (Panther).

The Quaqua Look and Feel can not be used on other platforms than Mac OS X.

Important: This class is a cut down version of the Quaqua14TigerLookAndFeel. It is for use by applications which don't need (or don't work with) the whole of the Quaqua Look and Feel.

Usage

Please use the QuaquaManager to activate this look and feel in your application. Or use the generic QuaquaLookAndFeel. Both are designed to automatically detect the appropriate Quaqua Look and Feel implementation for current Java VM.

Version:
3.2 2007-12-23 Set "ClassLoader" property to class loader of this LookAndFeel class.
3.1 2007-12-22 Try a different approach for loading the Quaqua Labels resource bundle.
3.0 2005-09-06 Moved from Panther package into subset package.
2.1 2005-08-25 QuaquaBrowserUI added.
2.0 2005-06-21 Reworked.
1.0 2004-10-26 Created.
Author:
Werner Randelshofer
See Also:
QuaquaManager, QuaquaLookAndFeel, Serialized Form

Field Summary
protected static java.lang.String commonDir
           
protected static java.lang.String jaguarDir
           
protected static javax.swing.plaf.FontUIResource MENU_FONT
          The menu font (Lucida Grande Regular 14 pt) is used for text in menus and window title bars.
protected static java.lang.String pantherDir
           
protected static java.lang.String tigerDir
           
 
Fields inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
target
 
Constructor Summary
Quaqua14MenuLAF()
          Creates a new instance.
 
Method Summary
protected  javax.swing.Icon createButtonStateIcon(java.lang.String location, int states)
           
 javax.swing.UIDefaults getDefaults()
          This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table.
 java.lang.String getDescription()
          Return a one line description of this look and feel implementation, e.g.
 java.lang.String getName()
          Return a short string that identifies this look and feel, e.g.
protected  void initClassDefaults(javax.swing.UIDefaults table)
          Initialize the uiClassID to BasicComponentUI mapping.
protected  void initComponentDefaults(javax.swing.UIDefaults table)
           
protected  void initGeneralDefaults(javax.swing.UIDefaults table)
           
 void initialize()
          UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults().
protected  java.lang.Object makeButtonStateIcon(java.lang.String location, int states)
           
protected  javax.swing.Icon[] makeIcons(java.lang.String location, int count, boolean horizontal)
           
 
Methods inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
getID, getSupportsWindowDecorations, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setTarget, toString, uninitialize
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initSystemColorDefaults, loadSystemColors, playSound
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, uninstallBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commonDir

protected static final java.lang.String commonDir
See Also:
Constant Field Values

jaguarDir

protected static final java.lang.String jaguarDir
See Also:
Constant Field Values

pantherDir

protected static final java.lang.String pantherDir
See Also:
Constant Field Values

tigerDir

protected static final java.lang.String tigerDir
See Also:
Constant Field Values

MENU_FONT

protected static final javax.swing.plaf.FontUIResource MENU_FONT
The menu font (Lucida Grande Regular 14 pt) is used for text in menus and window title bars.

Constructor Detail

Quaqua14MenuLAF

public Quaqua14MenuLAF()
Creates a new instance.

Method Detail

getDescription

public java.lang.String getDescription()
Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel". This string is intended for the user, e.g. in the title of a window or in a ToolTip message.

Overrides:
getDescription in class LookAndFeelProxy

getName

public java.lang.String getName()
Return a short string that identifies this look and feel, e.g. "CDE/Motif". This string should be appropriate for a menu item. Distinct look and feels should have different names, e.g. a subclass of MotifLookAndFeel that changes the way a few components are rendered should be called "CDE/Motif My Way"; something that would be useful to a user trying to select a L&F from a list of names.

Overrides:
getName in class LookAndFeelProxy

initialize

public void initialize()
UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults(). Subclasses should do any one-time setup they need here, rather than in a static initializer, because look and feel class objects may be loaded just to discover that isSupportedLookAndFeel() returns false.

Overrides:
initialize in class LookAndFeelProxy
See Also:
LookAndFeelProxy.uninitialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

getDefaults

public javax.swing.UIDefaults getDefaults()
This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table. Other applications, for example an application builder, may also call this method.

Overrides:
getDefaults in class LookAndFeelProxy
See Also:
initialize(), LookAndFeelProxy.uninitialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

initClassDefaults

protected void initClassDefaults(javax.swing.UIDefaults table)
Initialize the uiClassID to BasicComponentUI mapping. The JComponent classes define their own uiClassID constants (see AbstractComponent.getUIClassID). This table must map those constants to a BasicComponentUI class of the appropriate type.

Overrides:
initClassDefaults in class javax.swing.plaf.basic.BasicLookAndFeel
See Also:
getDefaults()

initGeneralDefaults

protected void initGeneralDefaults(javax.swing.UIDefaults table)

initComponentDefaults

protected void initComponentDefaults(javax.swing.UIDefaults table)
Overrides:
initComponentDefaults in class javax.swing.plaf.basic.BasicLookAndFeel

makeIcons

protected javax.swing.Icon[] makeIcons(java.lang.String location,
                                       int count,
                                       boolean horizontal)

makeButtonStateIcon

protected java.lang.Object makeButtonStateIcon(java.lang.String location,
                                               int states)

createButtonStateIcon

protected javax.swing.Icon createButtonStateIcon(java.lang.String location,
                                                 int states)

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.